package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDto;
import com.heima.model.wemedia.pojos.WmUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Api(value = "自媒体", tags = "自媒体用户", description = "自媒体用户API")
public interface WmUserControllerApi {

    /**
     * 自媒体添加用户
     * @param wmUser
     * @return
     */
    @ApiOperation("自媒体添加用户")
    public ResponseResult seveWmUser(WmUser wmUser);

    /**
     * 自媒体登录
     * @param dto
     * @return
     */
    @ApiOperation("自媒体登录")
    public ResponseResult login(WmUserDto dto);

    /**
     * 根据id获取自媒体人信息
     * @param id
     * @return
     */
    @ApiOperation("获取自媒体人信息")
    WmUser findWmUserById(Long id);
}
